package NewTmas.EditMode;

import NewTmas.Graphs.GraphVizGraph;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;

/**
 * Created by IntelliJ IDEA.
 * User: abhatnag
 * Date: 8/15/11
 * Time: 1:08 PM
 * To change this template use File | Settings | File Templates.
 */
public class ClearChangesListener implements ActionListener {
    EditIntFrame editIntFrame;
    Connection connection;
    GraphVizGraph graphVizGraph;
    String job;



    public ClearChangesListener(EditIntFrame editIntFrame, Connection connection, GraphVizGraph graphVizGraph, String job) {
        this.editIntFrame=editIntFrame;
        this.graphVizGraph=graphVizGraph;
        this.job=job;
        this.connection=connection;
    }

    public void actionPerformed(ActionEvent e) {
        editIntFrame.sqlCommands.clear();
        editIntFrame.model.removeAllElements();
        editIntFrame.model.clear();

    }
}
